package com.ziqikeji.xianyan.controller;

import com.ziqikeji.xianyan.entity.article.Article;
import com.ziqikeji.xianyan.service.article.ArticleService;
import com.ziqikeji.xianyan.service.recommend.ArticleRecommendService;
import org.hibernate.mapping.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.ArrayList;

/**
 * @author liuyu
 */
@Controller
@RequestMapping("/admin")
public class AdminController {


    @RequestMapping(value = "index", method = RequestMethod.GET)
    public String index(){
        return "/admin/index";
    }

    @RequestMapping(value = "dataBoard", method = RequestMethod.GET)
    public String dataBoard(){
        return "/admin/dataBoard/dataBoard";
    }

    /**
     * 文章审核页面
     * @return
     */
    @RequestMapping(value = "examine/articleExamine",method = RequestMethod.GET)
    public String articleExamine(){
        return "/admin/examine/article/articleExamine";
    }

    /**
     * 随笔审核页面
     * @return
     */
    @RequestMapping(value = "examine/essayExamine",method = RequestMethod.GET)
    public String essayExamine(){
        return "/admin/examine/essay/essayExamine";
    }

    /**
     * 文章推荐
     * @return
     */
    @RequestMapping(value = "recommend/articleRecommend",method = RequestMethod.GET)
    public String articleRecommend(){
        return "/admin/recommend/article/articleRecommend";
    }

}
